﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace kxcxw.Data.Entities
{
    /// <summary>
    /// 用户访问信息
    /// </summary>
    public class VisitInfo
    {
        public long Id { get; set; }

        /// <summary>
        /// 商品ID
        /// </summary>
        public string InformationID { get; set; }

        /// <summary>
        /// 用户主机地址或IP
        /// </summary>
        public string UserAddrOrIp { get; set; }

        /// <summary>
        /// 用户ID
        /// </summary>
        public string UserId { get; set; }

        /// <summary>
        /// 最后一次访问时间
        /// </summary>
        public DateTime LastVisitTime { get; set; }

        /// <summary>
        /// 累计访问次数
        /// </summary>
        public long VisitNum { get; set; }

    }

    /// <summary>
    /// 商品年访问信息
    /// </summary>
    public class YearVisitInfo
    {
        public long Id { get; set; }

        public int Year { get; set; }

        public string InformationID { get; set; }

        /// <summary>
        /// 访问次数
        /// </summary>
        public long VisitNum { get; set; }
    }

    /// <summary>
    /// 商品月访问量
    /// </summary>
    public class MonthVisitInfo
    {
        public long Id { get; set; }

        public string InformationID { get; set; }

        /// <summary>
        /// 年月 如201202
        /// </summary>
        public int YearMonth { get; set; }

        public long VisitNum { get; set; }
    }

    /// <summary>
    /// 商品天访问量
    /// </summary>
    public class DayVisitInfo
    {
        public long Id { get; set; }

        public int YearMonthDay { get; set; }

        public string InformationID { get; set; }

        public long VisitNum { get; set; }
    }
}
